package com.consult.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.consult.config.dto.LoginDto;
import com.consult.entity.Consultant;
import com.consult.mapper.ConsultantMapper;
import com.consult.service.IConsultantService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-22
 */
@Service
public class ConsultantServiceImpl extends ServiceImpl<ConsultantMapper, Consultant> implements IConsultantService {

    @Override
    public Page<Consultant> getConsultantPage(Page<Consultant> page) {
        return baseMapper.getConsultantPage(page);
    }

    @Override
    public LoginDto getByUserName(String name) {
        return baseMapper.getByUserName(name);
    }

}
